package com.chaos.order.api.feign;

import com.chaos.framework.model.dto.ID;
import com.chaos.framework.model.dto.result.data.DataResult;
import com.chaos.framework.model.dto.result.list.ListResult;
import com.chaos.order.api.constant.ServiceNameConstants;
import com.chaos.order.api.data.TOrderData;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = ServiceNameConstants.ORDER_SERVICE)
public interface OrderFeign {

    @PostMapping("/tOrder/one.admin")
    @ApiOperation(value = "订单表详情", httpMethod = "POST")
    DataResult<Boolean> one(@RequestBody ID data);

}

